package com.zzyl.service;

import com.aliyun.iot20180120.models.*;
import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.DeviceDto;
import com.zzyl.dto.DevicePageQueryDto;
import com.zzyl.vo.DeviceVo;
import com.zzyl.vo.ProductVo;

import java.util.List;

/**
 * @Description DeviceService
 * @Author dingyanchi
 * @Date 2024-12-28
 */
public interface DeviceService {
    // 从物联网平台同步产品列表
    void syncProductList();

    //查询所有产品列表
    List<ProductVo> allProduct();

    //注册设备
    void registerDevice(DeviceDto deviceDto);

    // 分页查询设备列表
    PageResponse<DeviceVo> pageQueryDevice(DevicePageQueryDto devicePageQueryDto);

    DeviceVo queryDeviceDetail(QueryDeviceDetailRequest queryDeviceDetailRequest);

    // 查询指定设备的物模型运行状态
    ResponseResult<QueryDevicePropertyStatusResponseBody.QueryDevicePropertyStatusResponseBodyData> queryDevicePropertyStatus(QueryDevicePropertyStatusRequest request);

    // 查看指定产品的已发布物模型中的功能定义详情
    ResponseResult<QueryThingModelPublishedResponseBody.QueryThingModelPublishedResponseBodyData> queryThingModelPublished(QueryThingModelPublishedRequest request);

    //修改设备
    void updateDevice(DeviceDto deviceDto);

    //删除设备
    void deleteDevice(DeleteDeviceRequest deleteDeviceRequest);
}
